import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import './globals.css'
import ClientSessionProvider from '@/components/providers/ClientSessionProvider'
import Navbar from '@/components/layout/Navbar'

const inter = Inter({ subsets: ['latin'] })

export const metadata: Metadata = {
  title: '灵狐智验',
  description: '高效的实验管理系统',
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="zh">
      <body className={inter.className}>
        <ClientSessionProvider>
          <div className="min-h-screen bg-gray-100">
            <Navbar />
            <main className="py-4">{children}</main>
          </div>
        </ClientSessionProvider>
      </body>
    </html>
  )
} 